import subprocess


pi = 3.14

if __name__ == '__main__':
    open = subprocess.Popen("ls -l", stdout=subprocess.PIPE, shell=True)
    for line in iter(open.stdout.readline, b''):
        print(line.decode("utf-8"))
    open.wait()
    
    
    pass